package com.example.javawebdemo.command;

import jakarta.servlet.ServletException;
import jakarta.servlet.http.*;

import java.io.IOException;

public class EditCommand implements ProductCommand {
    @Override
    public void execute(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {
        // 实现编辑产品逻辑
        String productId = request.getParameter("id");
        // 业务逻辑...
        request.getRequestDispatcher("edit_product.jsp")
                .forward(request, response);
    }
}